package gui.search;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.JList;
import java.awt.Color;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import javax.swing.JScrollBar;

public class OwnerShowPane extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JList list;
	
	public static OwnerShowPane instance;
	
	
    public static OwnerShowPane getInstance(){
    	if(instance==null){
    		instance= new OwnerShowPane();
    	}
		return instance;    		    	    	   
    }
	
	
	
	/**
	 * Create the panel.
	 */
	
	
	public OwnerShowPane() {
		setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Name:");
		lblNewLabel.setBounds(26, 75, 36, 21);
		add(lblNewLabel);
		
		textField = new JTextField();
		textField.setBounds(103, 75, 96, 20);
		add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(103, 106, 96, 20);
		add(textField_1);
		
		JLabel lblLastname = new JLabel("Lastname:");
		lblLastname.setBounds(26, 106, 67, 21);
		add(lblLastname);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(103, 138, 96, 20);
		add(textField_2);
		
		JLabel lblSnn = new JLabel("SNN");
		lblSnn.setBounds(26, 137, 36, 21);
		add(lblSnn);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(103, 170, 96, 20);
		add(textField_3);
		
		JLabel lblBirthdate = new JLabel("BirthDate");
		lblBirthdate.setBounds(26, 169, 67, 21);
		add(lblBirthdate);
		
		JLabel lblBirthplace = new JLabel("BirthPlace");
		lblBirthplace.setBounds(26, 201, 67, 21);
		add(lblBirthplace);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(103, 202, 96, 20);
		add(textField_4);
		
		JLabel lblOwnerInformation = new JLabel("OWNER INFORMATION");
		lblOwnerInformation.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblOwnerInformation.setHorizontalAlignment(SwingConstants.CENTER);
		lblOwnerInformation.setBounds(10, 11, 430, 21);
		add(lblOwnerInformation);
		
		list = new JList<Object>();
		list.setBorder(new LineBorder(new Color(0, 0, 0)));
		list.setBackground(Color.WHITE);
		list.setBounds(234, 209, 96, -113);
		add(list);
		
		JLabel lblPets = new JLabel("Pets:");
		lblPets.setBounds(249, 78, 46, 14);
		add(lblPets);

	}
	

}
